package cn.secby.distributor.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.*;
import cn.secby.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import cn.secby.common.core.web.domain.BaseEntity;

/**
 * 渠道商变更历史对象 tb_account_change_history
 * @author shenkunlin
 * @date 2025-04-26
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName(value = "tb_account_change_history")
public class AccountChangeHistory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    @TableId(value ="id" ,type = IdType.ASSIGN_ID )
    @JsonSerialize(using=ToStringSerializer.class)
    private Long id;

    /** 渠道商ID */
    @Excel(name = "渠道商ID")
    @TableField(value = "distributor_id")
    @JsonSerialize(using=ToStringSerializer.class)
    private Long distributorId;

    @TableField(exist = false)
    private Long distributorName;

    /** 原账号 */
    @Excel(name = "原账号")
    @TableField(value = "old_account")
    private String oldAccount;

    /** 新账号 */
    @Excel(name = "新账号")
    @TableField(value = "new_account")
    private String newAccount;

    /** 是否删除  1 未删除  2 已删除 */
    @Excel(name = "是否删除  1 未删除  2 已删除")
    @TableField(value = "is_delete")
    @TableLogic(value = "1", delval = "2")
    private Integer isDelete;

    /** 原开户行 */
    @Excel(name = "原开户行")
    @TableField(value = "old_bank_name")
    private String oldBankName;

    /** 新开户行 */
    @Excel(name = "新开户行")
    @TableField(value = "new_bank_name")
    private String newBankName;

    /** 原支行名称 */
    @Excel(name = "原支行名称")
    @TableField(value = "old_bank_branch_name")
    private String oldBankBranchName;

    /** 新支行名称 */
    @Excel(name = "新支行名称")
    @TableField(value = "new_bank_branch_name")
    private String newBankBranchName;

}
